package com.dayuanit.dy8.mall.springbootmall.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Setter
@Getter
public class AddressVO {

    @NotEmpty(message = "姓名不能为空")
    private String realName;

    @NotEmpty(message = "电话号码不能为空")
    @Size(min = 8, max = 15)
    private String phone;

    @NotEmpty(message = "省份不能为空")
    private String proCode;

    @NotEmpty(message = "城市不能为空")
    private String cityCode;

    private String areaCode;

    @NotEmpty(message = "详细地址不能为空")
    @Size(min = 8, max = 100)
    private String detailAddress;

}
